package com.genius.util.ConstPool;

import com.genius.util.Random.SeniorRandom;

import java.io.File;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class illuminatorPool {

    public static final dbTableName TableName = new dbTableName();

    public static final SeniorRandom seniorRandom = new SeniorRandom();

    /** task **/
    public static final int taskLimit = 30;  //用户当天未完成任务的最大限度

    /**date**/
    public static final String GodTime = "1970-01-01 00:00:00";

    public static final int second = 1000;

    public static final int minute = 60*second;

    public static final int hour = 60*minute;

    public static final int day = 24*hour;

    /**file**/
    private static final String dirRootPath =  System.getProperty("user.dir");
    public static final String uploadFileSavePath = dirRootPath+"\\src\\main\\resources\\WEB-INF\\upload\\";
    public static final String uploadFileTempPath = dirRootPath+"\\src\\main\\resources\\WEB-INF\\blobFile\\";
    public static final String uploadFileTempFile = dirRootPath+"\\src\\main\\resources\\WEB-INF\\temp.txt";
    public static final long uploadFileMaxSize = 20L*1024L*1024L*1024L;
    public static final int uploadFileMd5Size = 1024*1024;
    public static Map<String, File> fileMap = new ConcurrentHashMap<>();

    public static final String USER_NICK_NAME_PREFIX = "user_";

    /**RedisIdWorker**/
    public static final int LEFT_OFFSET = 32;
}
